package io.zw.modules.xinpai.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import io.zw.common.validator.group.AddGroup;
import io.zw.common.validator.group.Delete;
import io.zw.common.validator.group.ProjectGroup;
import io.zw.common.validator.group.UpdateGroup;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * 
 * @author zhuwei
 * @email 121203654@qq.com
 * @date 2018-10-10 13:15:04
 */
@TableName("tj_project")
public class ProjectEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private Long pId;
	/**
	 * 所属项目ID
	 */
	private Long parentId;
	/**
	 * 项目名称
	 */
	@NotBlank(message="项目名称不能为空", groups = {AddGroup.class, UpdateGroup.class})
	@NotBlank(message="区域名称不能为空", groups = {ProjectGroup.class, UpdateGroup.class})
	private String projectName;
	/**
	 * 
	 */
	private Integer orderNum;
	/**
	 * 备注
	 */
	private String remark;
	/**
	 * 
	 */
	@TableLogic
	private Integer delFlag;

	/**
	 * 项目类型
	 */
	private Integer type;

	private Long firmId;
	/**
	 * 设置：
	 */
	public void setPId(Long pId) {
		this.pId = pId;
	}
	/**
	 * 获取：
	 */
	public Long getPId() {
		return pId;
	}
	/**
	 * 设置：所属项目ID
	 */
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}
	/**
	 * 获取：所属项目ID
	 */
	public Long getParentId() {
		return parentId;
	}
	/**
	 * 设置：项目名称
	 */
	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}
	/**
	 * 获取：项目名称
	 */
	public String getProjectName() {
		return projectName;
	}
	/**
	 * 设置：
	 */
	public void setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
	}
	/**
	 * 获取：
	 */
	public Integer getOrderNum() {
		return orderNum;
	}
	/**
	 * 设置：备注
	 */
	public void setRemark(String remark) {
		this.remark = remark;
	}
	/**
	 * 获取：备注
	 */
	public String getRemark() {
		return remark;
	}
	/**
	 * 设置：
	 */
	public void setDelFlag(Integer delFlag) {
		this.delFlag = delFlag;
	}
	/**
	 * 获取：
	 */
	public Integer getDelFlag() {
		return delFlag;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Long getFirmId() {
		return firmId;
	}

	public void setFirmId(Long firmId) {
		this.firmId = firmId;
	}
}
